// script.js (追加功能代码)
function exportResults() {
    // 模拟导出结果操作
    alert('结果已导出');
}

// 示例数据
const classificationResults = ['分类1: 描述', '分类2: 描述'];
const topicResults = ['主题1: 描述', '主题2: 描述'];
const summaryContent = '这是简要内容的示例';

function displayResults() {
    const classificationList = document.getElementById('classificationResults');
    const topicList = document.getElementById('topicResults');
    const summaryDiv = document.getElementById('summaryContent');

    classificationResults.forEach(result => {
        const li = document.createElement('li');
        li.textContent = result;
        classificationList.appendChild(li);
    });

    topicResults.forEach(result => {
        const li = document.createElement('li');
        li.textContent = result;
        topicList.appendChild(li);
    });

    summaryDiv.textContent = summaryContent;
}

// 页面加载完成后显示结果
document.addEventListener('DOMContentLoaded', displayResults);
